﻿using System.Windows.Forms;
using GeoSketch2.Core;

namespace GeoSketch2.Archaeo
{
    public partial class TBBSnapPoint : BaseCaptureToolbarButton
    {
        #region Constructor
        /// <summary>
        /// The toolbar button for the Archaeopoint2d snap tool
        /// </summary>
        public TBBSnapPoint()
        {
            InitializeComponent();
            ToolTipText = "Snap point";
        } 
        #endregion

        #region Methods
        /// <summary>
        /// Gets the tool assigned to the button
        /// </summary>
        protected override BaseCaptureTool GetTool(MouseButtons e)
        {
            return new TSnapPointArchaeo(DisplayBox.Viewport, e);
        } 
        #endregion
    }
}
